package com.yexin.mail.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 想要调用远程服务
 * 1。引入open-feign pom中添加
 * 2。编写一个接口，告诉springcloud这个接口需要调用远程服务
 *     1.声明接口的每一个方法  都是调用那个远程服务的那个服务
 *  3。开启远程嗲用功能
 */
@EnableDiscoveryClient
@SpringBootApplication
@EnableFeignClients("com.yexin.mail.member.feign")
public class MailMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(MailMemberApplication.class, args);
    }

}
